projects
/
mshr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
887cbfe
)
correctly access file extension via boost::filesystem
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Mon, 16 Feb 2026 07:00:18 +0000
(07:00 +0000)
committer
Francesco Ballarin
<ballarin@debian.org>
Mon, 16 Feb 2026 07:00:18 +0000
(07:00 +0000)
Extension() is a method for a path object.
Last-Update: 2025-09-22
Forwarded: https://bitbucket.org/fenics-project/mshr/pull-requests/19
Gbp-Pq: Name boost_filesystem_extension.patch
app/mshrable.cpp
patch
|
blob
|
history
diff --git
a/app/mshrable.cpp
b/app/mshrable.cpp
index 1f90a9e4017eccfa325f6d0956490816191fd366..e663bbedd42c84c76cc40c22711943332a274c11 100644
(file)
--- a/
app/mshrable.cpp
+++ b/
app/mshrable.cpp
@@
-125,7
+125,7
@@
int main(int argc, char** argv)
if (vm.count("polyout"))
{
- std::string extension = boost::filesystem::
extension(vm["polyout"].as<std::string>()
);
+ std::string extension = boost::filesystem::
path(vm["polyout"].as<std::string>()).extension().string(
);
if (extension != ".off")
{